<?php
namespace Home\Controller;
use Think\Controller;
class AjaxController extends Controller {

    /**
     * 获取规格价格表的数据
     *
     * @return void
     * @author
     **/
    function getSpecPrice()
    {
        $spec_rule = I('get.spec_rules');//获取规格规则

        $spec_price = D('spec_price')->getByspec_rules($spec_rule);//获取商品价格

        $this->ajaxreturn($spec_price);
    }
}